package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <b>description</b>： <br>
 * <b>time</b>：2018-12-12 09:55 <br>
 * <b>author</b>： ready likun_557@163.com
 */
@RestController
@RequestMapping("/demo3")
public class Demo3Controller {

    @ResponseBody
    @RequestMapping("/m1")
    public Map<String, String> m1() {
        Map<String, String> map = new HashMap<>();
        for (int i = 0; i < 5; i++) {
            map.put("key-" + i, "value-" + i);
        }
        return map;
    }
}
